package xiaojian.toolkit.netty.util;

import io.netty.util.AttributeKey;

public class NettyConstants {
    /**
     * 通过该key将netty的channel存放在请求的bean中
     */
    public static final String  PROPERTY_CHANNEL = "channel";

    public static final String JSON_TYPE = "application/json";

    public static final String TLV_TYPE = "application/x-tlv";
    
    public static final String TXT_TYPE = "text/plain";

    public static final String HEADER_UUID = "uuid";

    public static final String HTTP_REQUEST = "httpRequest";

    public static final AttributeKey<Class> CTX_HTTP_RESP_CLASS = AttributeKey.valueOf("CTX_HTTP_RESP_CLASS");
    
    public static final String HEADER_MESSAGE_CODE = "Msg";
}
